﻿using LiteFramework.Contract;
using LiteFramework.Server;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Website.Sys
{
    public partial class Company : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                using (new ApproleScope())
                {
                    var users = ServerApplication.ComponentFactory.Create<ICompanyContract>().GetAll();
                    this.repeater1.DataSource = users;
                    this.repeater1.DataBind();
                }
            }
        }
    }
}